package cn.com.ejiakanghu.dto;

import cn.com.ejiakanghu.core.utils.LngLatUtil;
import org.linlinjava.litemall.db.domain.LitemallOrder;
import org.linlinjava.litemall.db.vo.logistics.LogisticsBackUserAddressData;

import java.math.BigDecimal;
import java.util.Map;

/**
 * @author wj
 * @date 2021/11/18 11:25
 */
public class UserAddressDto {


    private String province;

    private String city;

    private String village;

    private String userName;

    private String phone;

    private String address;

    private String detail;

    private BigDecimal lng;

    private BigDecimal lat;

    private Integer gender;

    private Integer isHos;

    private Integer hosId;

    private String hosName;

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getVillage() {
        return village;
    }

    public void setVillage(String village) {
        this.village = village;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public BigDecimal getLng() {
        return lng;
    }

    public void setLng(BigDecimal lng) {
        this.lng = lng;
    }

    public BigDecimal getLat() {
        return lat;
    }

    public void setLat(BigDecimal lat) {
        this.lat = lat;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public Integer getIsHos() {
        return isHos;
    }

    public void setIsHos(Integer isHos) {
        this.isHos = isHos;
    }

    public Integer getHosId() {
        return hosId;
    }

    public void setHosId(Integer hosId) {
        this.hosId = hosId;
    }

    public String getHosName() {
        return hosName;
    }

    public void setHosName(String hosName) {
        this.hosName = hosName;
    }


    public UserAddressDto(String province, String city, String village, String userName, String phone, String address, String detail, BigDecimal lng, BigDecimal lat, Integer gender, Integer isHos, Integer hosId, String hosName) {
        this.province = province;
        this.city = city;
        this.village = village;
        this.userName = userName;
        this.phone = phone;
        this.address = address;
        this.detail = detail;
        this.lng = lng;
        this.lat = lat;
        this.gender = gender;
        this.isHos = isHos;
        this.hosId = hosId;
        this.hosName = hosName;
    }

    public UserAddressDto(LitemallOrder litemallOrder) {
        this.province = litemallOrder.getProvince();
        this.city = litemallOrder.getCity();
        this.village = litemallOrder.getCounty();
        this.userName = litemallOrder.getConsignee();
        this.phone = litemallOrder.getMobile();
        this.address = litemallOrder.getAddress();
        this.detail = litemallOrder.getAddressDetail();
        this.lng = litemallOrder.getLng();
        this.lat = litemallOrder.getLat();
        this.gender = 0;
        this.isHos = litemallOrder.getIsHospital();
        this.hosId = litemallOrder.getHospitalId();
        this.hosName = litemallOrder.getHospitalName();
    }

    public UserAddressDto(LogisticsBackUserAddressData  backUserAddressData) {
        this.province = backUserAddressData.getProvince();
        this.city = backUserAddressData.getCity();
        this.village = backUserAddressData.getVillage();
        this.userName = backUserAddressData.getUserName();
        this.phone = backUserAddressData.getPhone();
        this.address = backUserAddressData.getAddress();
        this.detail = backUserAddressData.getDetail();
        this.lng = backUserAddressData.getLng();
        this.lat = backUserAddressData.getLat();
        this.gender = 0;
        this.isHos = backUserAddressData.getIsHos();
        this.hosId = backUserAddressData.getHosId();
        this.hosName = backUserAddressData.getHosName();
    }

    public UserAddressDto() {
    }


}
